import { axios } from '@/utils/request'

export function queryStudent (parameter) {
  return axios({
    url: '/student/query',
    method: 'post',
    data: parameter
  })
}

export function addStudent (parameter) {
  return axios({
    url: '/student/add',
    method: 'post',
    data: parameter
  })
}

export function addStudentList (parameter) {
  return axios({
    url: '/student/addList',
    method: 'post',
    data: parameter
  })
}

export function validateStudentCode (parameter) {
  return axios({
    url: '/student/validateStudentCode',
    method: 'post',
    data: parameter
  })
}

export function editStudent (parameter) {
  return axios({
    url: '/student/update',
    method: 'post',
    data: parameter
  })
}

export function removeStudent (parameter) {
  return axios({
    url: '/student/remove',
    method: 'post',
    data: parameter
  })
}

export function resetPwd (parameter) {
  return axios({
    url: '/student/resetPwd',
    method: 'post',
    data: parameter
  })
}

export function getInfo () {
  return axios({
    url: '/student/getInfo',
    method: 'post',
    headers: {
      'Content-Type': 'application/json;charset=UTF-8'
    }
  })
}
